package leader.action;

import leader.service.DirectPaperService;
import teacher.bean.Paper;

public class DirectPaperCancelcheckAction {
	private Paper paper;

	public Paper getPaper() {
		return paper;
	}

	public void setPaper(Paper paper) {
		this.paper = paper;
	}
	public String execute() {
		System.out.println(paper.getPapId());
		paper.setState(0);
		DirectPaperService DS = new DirectPaperService();
		DS.updatePaperState(paper);
		return "success";
	}
}
